package com.dhcy.mqtt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("page")
public class PageController {
    @RequestMapping("{fold}/{pagename}")
    public  String getFoldPage(@PathVariable String fold, @PathVariable String pagename){
        return fold+"/"+pagename;
    }

    @RequestMapping("{pagename}")
    public  String getPage(@PathVariable String pagename){
        return pagename;
    }
}
